package com.zengqingfa.examples.mybatisplus.chain;

import org.springframework.stereotype.Component;

@Component
public class HaveBreakfastFilter implements StudyPrepareFilter {

    @Override
    public boolean doFilter(PreparationList preparationList, FilterChain filterChain) {
        if (!preparationList.isHaveBreakfast()) {
            System.out.println("吃完早饭");
            return false;
        }
       return filterChain.doFilter(preparationList, filterChain);
    }

}